/*
 * Copyright the original author or authors.
 * 
 * Licensed under the MOZILLA PUBLIC LICENSE, Version 1.1 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *      http://www.mozilla.org/MPL/MPL-1.1.html
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.kairos.commands
{
	import com.bourre.commands.Command;
	
	import flash.events.Event;
	
	/**
	 * <code>TimeoutRT</code> class extends <code>IntervalRT</code> and limit the
	 * number of executions to one.
	 * 
	 * @author Cédric Néhémie
	 */
	public class TimeoutRT extends IntervalRT
	{
		/**
		 * Create a new <code>TimeoutRT</code> that execute <code>o</code> after <code>d</code>
		 * milliseconds.
		 * 
		 * @param	o	<code>Command</code> to execute.
		 * @param	d	<code>Number</code> of milliseconds between each interval.
		 * @param	e	<code>Event</code> to pass to the command.
		 */
		public function TimeoutRT ( o : Command, d : uint = 0, e : Event = null )
		{
			super ( o, d, 1, e );
		} 
	}
}